package com.sikaryofficial.system.service.impl;

import com.sikaryofficial.system.domain.dto.SysChannelUserListDTO;
import com.sikaryofficial.system.domain.dto.SysMemberUserListDTO;
import com.sikaryofficial.system.domain.dto.SysMemberUserListReq;
import com.sikaryofficial.system.mapper.SysUserMapper;
import com.sikaryofficial.system.service.ISysMemberUserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author : qinjinyuan
 * @date : 2023/12/13 16:42
 */
@Service
public class SysMemberUserServiceImpl implements ISysMemberUserService {

    private static final Logger log = LoggerFactory.getLogger(SysUserServiceImpl.class);

    @Autowired
    private SysUserMapper userMapper;

    /**
     * 根据条件分页查询用户列表
     *
     * @param user 用户信息
     * @return 用户信息集合信息
     */
    @Override
    public List<SysMemberUserListDTO> selectMemberUserList(SysMemberUserListReq user) {
        return userMapper.selectMemberUserList(user);
    }

    @Override
    public List<SysChannelUserListDTO> selectChannelUserList(SysMemberUserListReq user) {
        return userMapper.selectChannelUserList(user);
    }
}
